package com.example.train.eurekaprovide.mapper;

import com.example.train.eurekaprovide.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    /**
     * 根据ID获取数据
     * @param id
     * @return
     */
    Employee selectById(@Param("id") Integer id);

    /**
     * 获取全部数据
     * @return
     */
    List<Employee> selectAll();
}
